import request from '@/utils/request.js'


//关于文章的api

// 1.获取文章列表
export const articleFrom = (data) => {
	return request.get('/cgMm', {
		params: {
			page: data.page,
			pageSize: data.pageSize,
			categortId: data.categortId,
			state: data.state
		}
	})
}


//2.添加文章

//3.id删除文章
export const deleteArticle = (id) => {
	return request.delete('/cgMm/' + id)
}
